import { PropsWithChildren, Suspense } from "react";
import NprogressBar from "./nprogress-bar";

const LazySuspense: React.FC<PropsWithChildren> = ({ children }) => {
  return <Suspense fallback={<NprogressBar />}>{children}</Suspense>;
};

export default LazySuspense;
